package inheritance.zoo;

public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.name="二哈";
        dog.eat("狗粮");

        Cat cat=new Cat();
        cat.name="喵喵";
        cat.eat("猫粮");
    }
}
